<template>
      <!-- <div class="container">
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item in bannerList">
                <van-image  fit="contain" :src="item.img" />
            </van-swipe-item>
    </van-swipe>
    
</div> -->
<div class="banner">
        <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
            <van-swipe-item v-for="item in bannerList">
                <van-image  fit="contain" :src="item.img" height="200px"/>
            </van-swipe-item>
        </van-swipe>
    </div>
</template>
<script>
    export default {
        props:['bannerList']
    }
</script>

<style lang="less" scoped>
.banner{
  height: 200px;
}
.my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    text-align: center;
    background-color: #39a9ed;
  }
</style>